<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>setbpt</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : 06/02/2005</div>
    <p>
      <b>setbpt</b> - set breakpoints</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>setbpt(macroname
    [,linenumb])</tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>macroname</b>
        </tt>: string</li>
      <li>
        <tt>
          <b>linenumb</b>
        </tt>: scalar integer or vector of integers</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
      <tt>
        <b>setbpt</b>
      </tt> interactively inserts a breakpoint in the line
    number <tt>
        <b>linenumb</b>
      </tt> (default value is 1) of the function
    <tt>
        <b>macroname</b>
      </tt>
    </p>
    <p>
      <tt>
        <b>linenumb</b>
      </tt> can be a line or column vector of line numbers,
    or a single scalar line number.</p>
    <p>When reaching the breakpoint, Scilab evaluates the specified line,
    prints the number of the line and the name of the function. If the
    function is not compiled (see <tt>
        <b>comp</b>
      </tt>) the line is printed on
    the screen. Then Scilab goes into a <tt>
        <b>pause</b>
      </tt> mode in which the
    user can check current values. The <tt>
        <b>pause</b>
      </tt> is exited with
    <tt>
        <b>resume</b>
      </tt> or <tt>
        <b>abort</b>
      </tt>. Redefining the function does
    not clear the breakpoints, the user must explicitly delete breakpoints
    using <tt>
        <b>delbpt</b>
      </tt>. The maximum number of functions with
    breakpoints enabled must be less than 100 and the maximum number of
    breakpoints is set to 1000.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>setbpt('foo'),setbpt('foo',10),dispbpt()
delbpt()

setbpt('foo',[1,2,5,6]),dispbpt()</pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="delbpt.htm">
        <tt>
          <b>delbpt</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="dispbpt.htm">
        <tt>
          <b>dispbpt</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="../programming/pause.htm">
        <tt>
          <b>pause</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="../programming/resume.htm">
        <tt>
          <b>resume</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
